#ifndef INSTEADHTTPURL_H
#define INSTEADHTTPURL_H

#include <string>

class InsteadHttpUrl
{
public:
	InsteadHttpUrl(const std::string &url)
	{
		ParseUrl(url);
	}

	~InsteadHttpUrl(){}

	const std::string& ServerName()
	{
		return m_serverName;
	}

	const unsigned short ServerPort()
	{
		return m_serverPort;
	}

	const std::string& Path()
	{
		return m_path;
	}

private:
	void ParseUrl(const std::string &url);

	std::string m_serverName;

	unsigned short m_serverPort;

	std::string m_path;
};

#endif